package com.sloan.community.po;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import org.springframework.data.relational.core.mapping.Table;

import java.util.List;

@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@Table(name = "t_article")
public class Article extends BasePO {

    /**
     * 用户ID
     */
    private Long userId;
    /**
     * 标题
     */
    private String title;
    /**
     * 首图
     */
    private String firstPicture;
    /**
     * 浏览量
     */
    private Long view;
    /**
     * 点赞数
     */
    private Long likeCount;
    /**
     * 分享数
     */
    private Long shareCount;
    /**
     * 是否可以分享(0-关,1-开)
     */
    private Boolean shareable;
    /**
     * 是否开启评论(0-关,1-开)
     */
    private Boolean commentable;
    /**
     * 是否赞赏(0-关,1-开)
     */
    private Boolean appreciation;
    /**
     * 是否推荐(0-关,1-开)
     */
    private Boolean recommend;
}
